<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>12.网格布局合并模块</title>

  <style>
    .box1{
      display: grid;
      background-color: pink;
      grid-template-columns: repeat(3,100px);
      grid-template-rows: repeat(2,100px);
      /* grid-row: 1/2; */
      gap:20px;
      place-content: center center;
      height: 400px;
    }

    .item{
      border: 1px solid #ddd;
      background-color: blueviolet;
      border-radius: 5px;
      font-size: 18px;
      text-align: center;
      height: 50px;
    }
  </style
</head>
<body>

  <br />
  <h4>repeat(3,200px) gap 20px 30px </h4>
  <div class="box1">
    <div class="item">1</div>
    <div class="item">2</div>
    <div class="item">3</div>
    <div class="item">4</div>
  </div>
</body>
</html>